<!--  -->
<template>
  <div class="test2">
    <el-button class="button" @click="getValue">测试二</el-button>
    <Editor ref="editor"></Editor>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  components: {},
  computed: {},
  methods: {
    getValue() {
      console.log(this.$refs.editor.value);
    }
  }
};
</script>
<style lang='scss' scoped>
.test2 {
  width: 800px;
  margin: 0 auto;
  .button {
    margin-bottom: 20px;
  }
}
</style>